//
//  ViewController.m
//  UI06_CycleImages
//
//  Created by Hanlingyu on 16/7/21.
//  Copyright © 2016年 ltq. All rights reserved.
//

#import "ViewController.h"
#import "LTQCycleImages.h"

#define KScreenBounds [UIScreen mainScreen].bounds
#define kScreenWidth KScreenBounds.size.width
#define kScreenHeight KScreenBounds.size.height

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor whiteColor];
    
    NSArray *array = @[@"0.jpg", @"1.jpg", @"2.jpg", @"3.jpg", @"4.jpg"];
    
    LTQCycleImages *cycleImages = [[LTQCycleImages alloc] initWithFrame:CGRectMake(10, 64, kScreenWidth - 20, 200)];
    [cycleImages setImagesWithArray:array];
    [self.view addSubview:cycleImages];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
